﻿<!DOCTYPE html>
<html ng-app>
<head>
    <meta charset="utf-8" />
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
    <title>@ViewBag.Title</title>
    <!-- jQuery 2.1.4 -->
    <script src="~/plugins/jQuery/jQuery-2.1.4.min.js"></script>
    <script src="~/Scripts/jquery-form.js"></script>
    <link href="~/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <!-- FontAwesome 4.3.0 -->
    <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
    <!-- Ionicons 2.0.0 -->
    <link href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css" rel="stylesheet" type="text/css" />
    <!-- Theme style -->
    <link href="~/dist/css/AdminLTE.min.css" rel="stylesheet" type="text/css" />
    <!-- AdminLTE Skins. Choose a skin from the css/skins
        folder instead of downloading all of them to reduce the load. -->
    <link href="~/dist/css/skins/_all-skins.min.css" rel="stylesheet" type="text/css" />
    <!-- iCheck -->
    <link href="~/plugins/iCheck/flat/blue.css" rel="stylesheet" type="text/css" />
    <!-- Morris chart -->
    <link href="~/plugins/morris/morris.css" rel="stylesheet" type="text/css" />
    <!-- jvectormap -->
    <link href="~/plugins/jvectormap/jquery-jvectormap-1.2.2.css" rel="stylesheet" type="text/css" />
    <!-- Date Picker -->
    <link href="~/plugins/datepicker/datepicker3.css" rel="stylesheet" type="text/css" />
    <!-- Daterange picker -->
    <link href="~/plugins/daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css" />
    <!-- bootstrap wysihtml5 - text editor -->
    <link href="~/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css" rel="stylesheet" type="text/css" />

    <!-- jQuery UI 1.11.4 -->
    <script src="~/dist/js/jquery-ui.min.js" type="text/javascript"></script>
    <!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
    <script>$.widget.bridge('uibutton', $.ui.button);</script>
    <!-- Bootstrap 3.3.2 JS -->
    <script src="~/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
    <!-- Morris.js charts -->
    <script src="~/dist/js/raphael-min.js" type="text/javascript"></script>
    @*
        <script src="@Url.Content(" ~/plugins/morris/morris.min.js")" type="text/javascript"></script>
    *@
    <!-- Sparkline -->
    <script src="~/plugins/sparkline/jquery.sparkline.min.js" type="text/javascript"></script>
    <!-- jvectormap -->
    <script src="~/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js" type="text/javascript"></script>
    <script src="~/plugins/jvectormap/jquery-jvectormap-world-mill-en.js" type="text/javascript"></script>
    <!-- jQuery Knob Chart -->
    <script src="~/plugins/knob/jquery.knob.js" type="text/javascript"></script>
    <!-- daterangepicker -->
    <script src="~/dist/js/moment.min.js" type="text/javascript"></script>
    <script src="~/plugins/daterangepicker/daterangepicker.js" type="text/javascript"></script>
    <!-- datepicker -->
    <script src="~/plugins/datepicker/bootstrap-datepicker.js" type="text/javascript"></script>
    <!-- Bootstrap WYSIHTML5 -->
    <script src="~/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js" type="text/javascript"></script>
    <!-- Slimscroll -->
    <script src="~/plugins/slimScroll/jquery.slimscroll.min.js" type="text/javascript"></script>
    <!-- FastClick -->
    <script src="~/plugins/fastclick/fastclick.min.js"></script>
    <!-- AdminLTE App -->
    <script src="~/dist/js/app.min.js" type="text/javascript"></script>

    <!-- AdminLTE dashboard demo (This is only for demo purposes) -->
    @*
        <script src="@Url.Content(" ~/dist/js/pages/dashboard.js")" type="text/javascript"></script>
    *@
    <!-- AdminLTE for demo purposes -->
    <script src="~/dist/js/demo.js" type="text/javascript"></script>

    <!--时间插件-->
    @*
        <script src="@Url.Content(" ~/bootstrap/DateTime/locales/bootstrap-datetimepicker.fr.js")" type="text/javascript"></script>
    *@
    <script src="~/bootstrap/DateTime/bootstrap-datetimepicker.js"type="text/javascript"></script>
    <link href="~/bootstrap/DateTime/bootstrap-datetimepicker.min.css" rel="stylesheet" />

    <!--layer插件-->
    <script src="~/Scripts/layer/layer.js"></script>

</head>
<body class="skin-blue sidebar-mini">
    <div class="wrapper">
        <header class="main-header">
            <!-- Logo -->
            <a href="#" class="logo">
                <!-- mini logo for sidebar mini 50x50 pixels -->
                <span class="logo-mini">ZHY</span>
                <!-- logo for regular state and mobile devices -->
                <span class="logo-lg">园区后台管理系统</span>
            </a>
            <!-- Header Navbar: style can be found in header.less -->
            <nav class="navbar navbar-static-top" role="navigation">
                <!-- Sidebar toggle button-->
                <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
                    <span class="sr-only">Toggle navigation</span>
                </a>

                <div class="navbar-custom-menu">
                    <ul class="nav navbar-nav">
                        <!-- User Account: style can be found in dropdown.less -->
                        <li class="dropdown user user-menu">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <img src="~/dist/img/user2-160x160.jpg" class="user-image" alt="User Image" />
                                <span class="hidden-xs">@MinHangWisdomParkWeb.GlobalParameter.UserName</span>
                            </a>
                            <ul class="dropdown-menu">
                                <!-- User image -->
                                <li class="user-header">
                                    <img src="~/dist/img/user2-160x160.jpg" class="img-circle" alt="User Image" />
                                    <p>个人简介</p>
                                </li>
                                <!-- Menu Body -->
                                <!-- Menu Footer-->
                                <li class="user-footer">
                                    @*
                                        <div class="pull-left">
                                        <a href="#" class="btn btn-default btn-flat">Profile</a>
                                        </div>
                                    *@
                                    <div class="pull-left">
                                        <a href="#" class="btn btn-default btn-flat" id="bianjiziliao" data-toggle="control-sidebar">编辑资料</a>
                                    </div>
                                    <div class="pull-right">
                                        <a href="~/Main/Main")" class="btn btn-danger btn-flat">退出登录</a>
                                    </div>
                                </li>
                            </ul>
                        </li>
                        @*
                            <li>
                            <a href="#" data-toggle="control-sidebar"> <i class="fa fa-gears"></i>
                            </a>
                            </li>
                        *@
                    </ul>
                </div>
            </nav>
        </header>
        <!-- Left side column. contains the logo and sidebar -->
        <aside class="main-sidebar">
            <!-- sidebar: style can be found in sidebar.less -->
            <section class="sidebar">
                <!-- Sidebar user panel -->
                <div class="user-panel">
                    <div class="pull-left image">
                        <img src="~/dist/img/user2-160x160.jpg" class="img-circle" alt="User Image" />
                    </div>
                    <div class="pull-left info">
                        <p>@MinHangWisdomParkWeb.GlobalParameter.UserName</p>

                        <a href="#">
                            <i class="fa fa-circle text-success"></i>
                            在线
                        </a>
                    </div>
                </div>
                <ul class="sidebar-menu" id="main">
                    @{
                        foreach (MinHangWisdomParkWeb.Controllers.JurisdictionController.ActorsLists i in MinHangWisdomParkWeb.Helps.ActorPower(MinHangWisdomParkWeb.GlobalParameter.Actorid))
                        {
                            if (i.ischecked == true&&i.Type!="Phone")
                            {
                                if (i.FunctionName == @ViewBag.lujin)
                                {
                                    <li class="treeview active open">
                                        <a href="#">
                                            <i class="fa fa-dashboard"></i>
                                            <span>@i.FunctionName</span>
                                            <i class="fa fa-angle-left pull-right"></i>
                                        </a>
                                        <ul class="treeview-menu">
                                            @foreach (var a in i.List)
                                            {
                                                if (a.ischecked == true)
                                                {
                                                    if (a.FunctionName == @ViewBag.Title)
                                                    {
                                                        <li class="active">
                                                            <a href="/@a.Type&Type=@a.FunctionName&Title=@a.FunctionName&lujin=@i.FunctionName">
                                                                <i class="fa fa-circle-o"></i>
                                                                @a.FunctionName
                                                            </a>
                                                        </li>
                                                    }
                                                    else
                                                    {
                                                        <li>
                                                            <a href="/@a.Type&Type=@a.FunctionName&Title=@a.FunctionName&lujin=@i.FunctionName">
                                                                <i class="fa fa-circle-o"></i>
                                                                @a.FunctionName
                                                            </a>
                                                        </li>
                                                    }
                                                }

                                            }
                                        </ul>
                                    </li>
                                }
                                else
                                {
                                    <li class="treeview ">
                                        <a href="#">
                                            <i class="fa fa-dashboard"></i>
                                            <span>@i.FunctionName</span>
                                            <i class="fa fa-angle-left pull-right"></i>
                                        </a>
                                        <ul class="treeview-menu">
                                            @foreach (var a in i.List)
                                            {
                                                if (a.ischecked == true)
                                                {
                                                    if (a.FunctionName == @ViewBag.Title)
                                                    {
                                                        <li class="active">
                                                            <a href="/@a.Type&Type=@a.FunctionName&Title=@a.FunctionName&lujin=@i.FunctionName">
                                                                <i class="fa fa-circle-o"></i>
                                                                @a.FunctionName
                                                            </a>
                                                        </li>
                                                    }
                                                    else
                                                    {
                                                        <li>
                                                            <a href="/@a.Type&Type=@a.FunctionName&Title=@a.FunctionName&lujin=@i.FunctionName">
                                                                <i class="fa fa-circle-o"></i>
                                                                @a.FunctionName
                                                            </a>
                                                        </li>
                                                    }
                                                }
                                            }
                                        </ul>
                                    </li>
                                }
                            }
                        }
                    }
                </ul>
            </section>
            <!-- /.sidebar -->
        </aside>
        <div class="content-wrapper">
            <!-- Content Wrapper. Contains page content -->
            <!-- Content Header (Page header) -->
            <section class="content-header text-center"></section>
            <div class="row">
                <div class="col-md-2"></div>
                <div class="col-md-8">
                    <ol class="breadcrumb">
                        <li>
                            <a>@ViewBag.lujin</a>
                        </li>
                        <li class="active">@ViewBag.Title</li>
                    </ol>
                </div>
                <div class="col-md-2"></div>
            </div>
            @RenderBody()
        </div>

        <!--页脚-->
        <!--  <footer class="main-footer">
            <div class="pull-right hidden-xs"> <b>Version</b>
                2.0
            </div> <strong>Copyright &copy; 2014-2015
                <a href="http://almsaeedstudio.com">Almsaeed Studio</a>
                .</strong>
            All rights reserved.
        </footer>
        -->
        <!--右侧弹出层-->
        <!-- Control Sidebar -->
        <aside class="control-sidebar control-sidebar-dark">
            <!-- Create the tabs -->
            <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
                <li class="active">
                    <a href="#control-sidebar-home-tab" data-toggle="tab">
                        @*
                            <i class="fa fa-home"></i>
                        *@资料修改
                    </a>
                </li>

                <li>
                    <a href="#control-sidebar-settings-tab" data-toggle="tab">
                        <i class="fa fa-gears"></i>
                    </a>
                </li>
            </ul>
            <!-- Tab panes -->
            <div class="tab-content">
                <!-- Home tab content -->
                <div class="tab-pane active" id="control-sidebar-home-tab">
                    <div class="row">
                        <div class="col-xs-12" id="ziliao">
                            @{
                                if (MinHangWisdomParkWeb.GlobalParameter.UserId != null)
                                {
                                    MinHangWisdomParkWeb.Models.tbPeople people = (MinHangWisdomParkWeb.Helps.MyPeopleSelect(MinHangWisdomParkWeb.GlobalParameter.UserId)) != null ? (MinHangWisdomParkWeb.Helps.MyPeopleSelect(MinHangWisdomParkWeb.GlobalParameter.UserId)) : (new MinHangWisdomParkWeb.Models.tbPeople());
                                    <input type="hidden" id="PeopleId" value="@people.PeopleID" />
                                    <div class="form-group">
                                        <label for="exampleInputEmail1">姓名</label>
                                        <input type="email" class="form-control" id="exampleInputName" value="@people.PeopleName">
                                    </div>
                                    <div class="form-group">
                                        <label for="exampleInputEmail1">性别</label>
                                        <input type="email" class="form-control" id="exampleInputSexy" value="@people.Sexy">
                                    </div>
                                    <div class="form-group">
                                        <label for="exampleInputEmail1">手机号</label>
                                        <input type="email" class="form-control" id="exampleInputPhone" value="@people.PhoneNum">
                                    </div>
                                    <div class="form-group">
                                        <label for="exampleInputEmail1">邮箱</label>
                                        <input type="email" class="form-control" id="exampleInputEmail1" value="@people.Email">
                                    </div>
                                }
                            }
                        </div>
                        <div class="text-center">
                            <a href="#" class="btn btn-info btn-flat" data-toggle="control-sidebar" id="quxiaoxiugai">取消修改</a>
                            <a href="#" class="btn btn-danger btn-flat" data-toggle="control-sidebar" style="margin-left: 1em;" id="querenxiugai">确认修改</a>
                        </div>
                    </div>
                </div>
                <!-- /.tab-pane -->
                <!-- Stats tab content -->
                <div class="tab-pane" id="control-sidebar-stats-tab">Stats Tab Content</div>
                <!-- /.tab-pane -->
                <!-- Settings tab content -->
                <div class="tab-pane" id="control-sidebar-settings-tab">ceshi</div>
                <!-- /.tab-pane -->
            </div>
        </aside>
        <!-- /.control-sidebar -->
        <!-- Add the sidebar's background. This div must be placed
             immediately after the control sidebar -->
        <div class='control-sidebar-bg'></div>
    </div>
</body>
</html>

<script type="text/javascript">
    $('#quxiaoxiugai').click(function () {
        $("#ziliao").load(location.href + " #ziliao>*", "");
    })

    $('#querenxiugai').click(function () {
        var Id = $('#PeopleId').val();
        var Name = $('#exampleInputName').val();
        var Sexy = $('#exampleInputSexy').val();
        var Phone = $('#exampleInputPhone').val();
        var Email1 = $('#exampleInputEmail1').val();

        $.post("~/Main/MyPeopleUpdateAjax/", { Id: Id, Name: Name, Sexy: Sexy, Phone: Phone, Email: Email1 }, function (data, status) {
            if (status == 'success') {
                alert("修改成功!");
            }
        })
    })
</script>